/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,
} from 'react-native';
import { StackNavigator} from 'react-navigation';

import AnimatedScreen from './react_native/rn_animated.js';
import MainScreen from './react_native/rn_main.js';
import ProfileScreen from './react_native/rn_second.js';
import InputScreen from './react_native/rn_input.js';
import FlatListScreen from './react_native/rn_flatlist.js';
import SectionListScreent from './react_native/rn_sectionlist.js';
import FetchScreen from './react_native/rn_fetch.js';
import TimerScreen from './react_native/rn_timer.js';



export const TestProject=StackNavigator({
  Main:{screen: MainScreen},
  Profile:{screen:ProfileScreen},
  Input:{screen:InputScreen},
  FlatList:{screen:FlatListScreen},
  SectionList:{screen:SectionListScreent},
  Fetch:{screen:FetchScreen},
  Animate:{screen:AnimatedScreen},
  Timer:{screen:TimerScreen},
},
{
  initialRouteName:'Main',
  onTransitionStart:()=>{console.log('导航栏切换开始')},
  onTransitionEnd:()=>{console.log('导航栏切换结束')},
}
);

AppRegistry.registerComponent('TestProject', () => TestProject);
